package com.itheima.order.service.impl;

import com.itheima.order.entity.Order;
import com.itheima.order.mapper.OrderMapper;
import com.itheima.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> findOrderByUsername(String username) {

        return orderMapper.findOrderByUsername(username);
    }
}
